package usaco.c2006.december.bronze;

import java.util.Scanner;

/*
 * p2839
 * USACO 2006 December - Bronze
 */

public class p2839 {

	static int N, M;
	static int[] count = new int[10];

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		N = scanner.nextInt();
		M = scanner.nextInt();
		for (int i=N;i<=M;++i) {
			makeCount(i);
		}
		for (int i=0;i<10;++i) {
			System.out.print(count[i]);
			if (i == 9) {
				System.out.println();
			}
			else {
				System.out.print(" ");
			}
		}

	}

	private static void makeCount(int i) {
		while (i > 0) {
			count[i%10]++;
			i/=10;
		}
	}

}
